﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManager.Data_Transfer_Layer;
using HotelManager.Data_Access_Layer;

namespace HotelManager.Business_Logic_Layer
{
    class loaiphongBLO
    {
        #region Variables
        private string error;
        private loaiphongDAO DAO;
        #endregion

        public loaiphongBLO()
        {
            DAO = new loaiphongDAO();
            error = "";
        }

        public loaiphongDTO[] get()
        {
            return DAO.get();
        }

        public string[] get_arr()
        {
            return DAO.get_arr();
        }

        public loaiphongDTO View_Detail(int lp_id)
        {
            return DAO.View_Detail(lp_id);
        }

        public loaiphongDTO View_DetailbyName(string lp_tenloaiphong)
        {
            return DAO.View_DetailbyName(lp_tenloaiphong);
        }

        public void Delete(loaiphongDTO obj)
        {
            DAO.Delete(obj);
        }

        public void Update(loaiphongDTO obj)
        {
            DAO.Update(obj);
        }


        public void Insert(loaiphongDTO obj)
        {
            DAO.Insert(obj);
        }
    }
}
